package com.day03;

//逢七过 7的倍数,个位及十位为7
public class Demo04 {
    public static void main(String[] args) {
        int count=0;
        for (int i = 1; i <=100 ; i++) {
            int ge=i%10;
            int shi=i/10%10;
            //&&短路
            /*if ((ge!=7)&&(shi!=7)&&(i%7!=0)){
                count++;
                System.out.print(i+" ");
                if (count%5==0){
                    System.out.println();
                }
            }*/

            //continue跳转
            if ((ge==7)||(shi==7)||(i%7==0)){
                continue;
            }
            count++;
            System.out.print(i+" ");
            if (count%5==0){
                System.out.println();
            }
        }
    }
}
